package service

import (
	"awesomeTask/application/client"
	"awesomeTask/application/timer"
)

type ClientTimerService struct {
}

/**
注册服务器的定时任务
*/
func (ioc ClientTimerService) Register() {
	timer.SetTimeInterval(func() {
		client.EventClientHandlerObj{}.PostNodeStatus()
	}, timer.Second*20)

	//timer.SetTimeOut(func() {
	//	fmt.Println("尝试断开服务器的连接")
	//	client.ServerCon.Close()
	//}, timer.Minute)
}
func (ioc ClientTimerService) Boot() {

}
